]> dgit.raspbian.org Git - gnome-shell.git/commit
st/theme-node-drawing: Fix inner shadow fast path condition
authorSebastian Keller <skeller@gnome.org>
Sat, 6 Feb 2021 23:23:04 +0000 (00:23 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 7 Feb 2021 01:00:05 +0000 (01:00 +0000)
commit9e86cdbe71b4bf60e3a8d1d46b6f64a6dc5c0b10
tree5fa5ef38ee7ae8aa437a6258d7fec4a280d7a1d4
parent0a35735ba0c43dddeb87f71115931b103bdbeb53
st/theme-node-drawing: Fix inner shadow fast path condition

We want to use the fast path of filling the entire area if either the
left and right shadows would overlap or the top and bottom shadows. The
latter check was wrong due to a typo resulting in the regular path
being used in some cases it couldn't (and shouldn't) handle.

This was causing the inset shadow used to highlight panel buttons to
not appear for buttons above a certain width.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1646>
src/st/st-theme-node-drawing.c